package com.tmsps.ne4weixin.bean.message.custom;

import com.tmsps.ne4weixin.bean.message.custom.vo.Text;
import com.tmsps.ne4weixin.config.enumeration.MsgTypeEnum;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Title: TextMessage.java
 * @Package: com.tmsps.ne4weixin.bean.custom
 * @Description: 客服消息-发送文本消息
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TextMessage extends BaseMessage {

	/**
	 * 消息内容
	 */
	private Text text;

	public TextMessage(String touser, String content) {
		super(touser, MsgTypeEnum.TEXT);
		this.text = new Text(content);
	}

	public TextMessage(String touser, Text text) {
		super(touser, MsgTypeEnum.TEXT);
		this.text = text;
	}
}
